##############################
from src import logPro, upload, ascPro, download, cleaner
import basicConfig


# 基础配置功能测试
def test_basic_config():
    # print(__file__)
    pass


# 日志生成功能测试
def test_log_pro():
    log_types = ["debug", "info", "warning", "error", "critical", "unknown"]
    for l in log_types:
        logPro.produce_logs(l, f"This is a {l} log")


# 上传文件功能测试
def test_upload():
    uploader = upload.FileUploader()
    uploader.run()


# asc文件转xlsx文件功能测试
def test_asc_transfer():
    ascPro.transfer_files(basicConfig.ASC_FILE_DIR, basicConfig.TEMP_FILE_DIR)


# 处理xlsx文件功能测试
def test_asc_pro():
    ascPro.process_files(basicConfig.TEMP_FILE_DIR)


# 下载文件功能测试
def test_download():
    downloader = download.FileDownloader()
    downloader.run()


# 清除文件功能测试
def test_cleaner():
    cleaner.clear_all()
